package com.weishaoying.mongo.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

/**
 * @author WeiShaoying
 * @date 2018/5/16
 */
@Configuration
@EnableMongoRepositories(basePackages = "com.weishaoying.mongo.repository.secondary", mongoTemplateRef = SecondaryMongoConfig.MONGO_TEMPLATE)
public class SecondaryMongoConfig {
    static final String MONGO_TEMPLATE = "secondaryMongoTemplate";
}
